package com.ybkj.daijia.server.model;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 推荐提成表
 *
 * @author Shine
 */
public class DriverRebate {

    public static final int FIX_TYPR = 1;
    public static final int FIX_LEVEL = 1;
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    protected Long driverId;
    protected Date created;
    protected Date updated;
    private Integer type;//提成类型 0一次性 1代驾
    private Integer level;//提成等级 0不提成 1一级 2二级 3三级
    private Long companyId;//提成等级 0不提成 1一级 2二级 3三级
    /**
     * 第一级
     */
    private BigDecimal commission1;// 提成比例
    private BigDecimal money1;// 提成金额
    private DriverRebateType driverRebateType1; // 提成方式
    //一次性提成
    private BigDecimal disposableMoney1;// 一次性提成金额
    private String content;//分享文字
    private Integer driverRewardNode;//服务人员推荐提成

    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Integer getDriverRewardNode() {
        return driverRewardNode;
    }

    public void setDriverRewardNode(Integer driverRewardNode) {
        this.driverRewardNode = driverRewardNode;
    }

    public BigDecimal getCommission1() {
        if (null == commission1) {
            return BigDecimal.ZERO;
        }
        return commission1;
    }


    public void setCommission1(BigDecimal commission1) {
        this.commission1 = commission1;
    }


    public BigDecimal getMoney1() {
        if (null == money1) {
            return BigDecimal.ZERO;
        }
        return money1;
    }


    public void setMoney1(BigDecimal money1) {
        this.money1 = money1;
    }


    public DriverRebateType getDriverRebateType1() {
        if (null == driverRebateType1) {
            return DriverRebateType.guding;
        }
        return driverRebateType1;
    }

    public void setDriverRebateType1(DriverRebateType driverRebateType1) {
        this.driverRebateType1 = driverRebateType1;
    }

    public Integer getType() {
        if (null == type) {
            return 0;
        }
        return type;
    }


    public void setType(Integer type) {
        this.type = type;
    }


    public Integer getLevel() {
        if (null == level) {
            return 0;
        }
        return level;
    }


    public void setLevel(Integer level) {
        this.level = level;
    }


    public BigDecimal getDisposableMoney1() {
        if (null == disposableMoney1) {
            return BigDecimal.ZERO;
        }
        return disposableMoney1;
    }


    public void setDisposableMoney1(BigDecimal disposableMoney1) {
        this.disposableMoney1 = disposableMoney1;
    }


    public String getContent() {
        return content;
    }


    public void setContent(String content) {
        this.content = content;
    }


    public enum DriverRebateType {
        /**
         * 比例提成
         */
        percent,
        /**
         * 固定提成
         */
        guding
    }


}
